package com.example.qzzm;

import com.example.qzzm.R;
import com.example.view.GifView;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageView;
import android.app.Activity;
import android.os.Bundle;

/**
 * 注册界面的Activity
 * 
 * @author Administrator
 *
 */
public class GifActivity extends Activity {

	// 返回按钮
	private ImageView ivBack;
	// 加载中
	private GifView gvLoad;

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		try {
			setContentView(R.layout.activity_gif);

			initView();
			initListeners();

			gvLoad = (GifView) findViewById(R.id.gv_load);
			gvLoad.setMovieResource(R.raw.app_loading);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	// 初始化布局控件
	private void initView() {
		ivBack = (ImageView) findViewById(R.id.iv_back);
	}

	// 初始化监听事件
	private void initListeners() {

		ivBack.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				finish();
			}
		});
	}
}
